﻿@if((Model as IEnumerable<dynamic>).Any())
{
    <ul class="unit-grid address card customer-address">
    @foreach(var i in Model)
    {
        <li class="unit address card customer-address">
            <header>
                @JDM.String(i.ContactName)
            </header>
            <section>
                <span>@String.Format("{0}, {1}", JDM.String(i.Address1), JDM.String(i.Address2))</span>
                <span>@JDM.String(i.City)</span>
                <span>@JDM.String(i.Region.Name)</span>
                <span>@JDM.String(i.Country.Name)</span>
                <span>@JDM.String(i.PostalCode)</span>
            </section>
            <section>
                <span>T: @JDM.String(i.PhoneNumber)</span>
                <span>F: @JDM.String(i.FaxNumber)</span>
                <span>@@: @JDM.String(i.Email)</span>
            </section>
        </li>
    }
    </ul>
}